/* 基础变量 */
:root {
  --el-color-primary: #409eff;
  --el-color-success: #67c23a;
  --el-color-warning: #e6a23c;
  --el-color-danger: #f56c6c;
  --el-color-info: #909399;
}

/* 基础布局 */
body {
  margin: 0;
  padding: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* 全局过渡 */
* {
  transition: all 0.3s ease;
}

/* NProgress样式 */
#nprogress .bar {
  background: var(--el-color-primary);
  height: 3px;
}

#nprogress .peg {
  box-shadow:
    0 0 10px var(--el-color-primary),
    0 0 5px var(--el-color-primary);
}

/* 暗色模式适配 */
.dark {
  --el-bg-color-page: #0a0a0a;
  --el-text-color-primary: rgba(255, 255, 255, 0.9);
}
